package pres.dnf.test.java.springcloud.client.feign.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pres.dnf.test.java.springcloud.client.feign.service.OpsSerivce;

/**
 * @author dengfan
 * @version 1.0
 * @description
 * @date 2018/9/11 0011 15:41
 */
@RestController
public class OpsConsumerAPI {

    @Autowired
    private OpsSerivce opsSerivce;

    @RequestMapping(value = "/add")
    public Integer add(){
       return opsSerivce.add(20,40);
    }
}